//
//  NSString+Extension.h
//

#import <Foundation/Foundation.h>

//是否是空字符串
#define ISBLANK(str) [NSString isBlankString:str]

//快速格式化一个字符串
#define _S(str,...) [NSString stringWithFormat:str,##__VA_ARGS__]

@interface NSString (Extension)
-(CGSize)sizeWithFont:(UIFont *)font;
-(CGSize)sizeWithFont:(UIFont *)font constrainedToSize:(CGSize)size;
+(NSString*)stringDecodingByMD5:(NSString*)str;
+(BOOL)isBlankString:(NSString *)string;
-(NSString*)md5DecodingString;
-(BOOL)isValidatePhone;
-(BOOL)isValidateEmail;
+(NSString *)randomStringWithLength:(NSUInteger)length;
+ (NSString *)pathDocumentsWithFileName:(NSString *)filename;
-(NSString *)trim;
- (NSString *)replaceCharacter:(NSString *)oStr withString:(NSString *)nStr;
+(NSString *)paramStringWithParamDic:(NSDictionary *)dic;
- (NSString *)stringByDecodingURLFormat;
@end
